﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script src="JavaScript.js"></script>
</head>
<body>

    <div>  测试  </div>

    <div>

        <input type="text" value="xxxx" name="t1" class="t1" id="t1" />
       <input type="text" value="xxxx" name="t1" class="t1" id="t1" />

    </div>   

    <input type="button" value="dianji" onclick="ii()" />

    <p>你好世界!</p>
    <div id="main">
        <p> DOM 是非常有用的。</p>
        <p>该实例展示了  <b>getElementsByTagName</b> 方法</p>
    </div>
    <script>
        var x = document.getElementById("main");
        var y = x.getElementsByTagName("p");
        document.write('id="main"元素中的第一个段落为：' + y[0].innerHTML);
    </script>

    <!--<div> 我是一个DIV </div>

    <div id="oo"> 骑士 詹姆斯 </div>


    <script>
        cars=["BMW","Volvo","Saab","Ford"];
        list:
        {
            document.write(cars[0] + "<br>");
            break list;

        

        document.write(cars[1] + "<br>");
        document.write(cars[2] + "<br>");
    }

        document.write(cars[3] + "<br>");
        document.write(cars[4] + "<br>");
        document.write(cars[5] + "<br>");
        
    </script>


    <input type="button" onclick="xxoo()">

    <input type="button" onclick="pp()" name="我靠" value="我去" id="" />-->

</body>
</html>
